package com.duying.hgk.manager;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.busi.framework.base.PageSupport;
import com.duying.gh.GhCommonManager;

public class ShInfoManager extends GhCommonManager{
	
	
	public PageSupport getPage(Integer pageNo){
		String hql = "from ShInfo s order by s.contract_no asc";
		return this.baseDao.findPageByHql(hql, pageNo);
	}
	
	
	public List getListNotIn(Integer[] infoId){
		List listShInfo = null;
		String hql = null;
		if(infoId == null || infoId.length == 0){
			hql = "from ShInfo s order by s.contract_no asc";
			listShInfo = this.baseDao.getByHQL(hql);
		}else{
			hql = "from ShInfo s where s.id not in (:infoId) order by s.contract_no asc";
			Map map = new HashMap();
			map.put("infoId", infoId);
			listShInfo = this.baseDao.getByHQL(hql, map);
		}
		return listShInfo;
	}
}
